/* =====================================================
   HOORATOOR PRODUCT PAGE
===================================================== */

.product-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 55px 30px 100px;
}

/* ================= PRODUCT SECTION ================= */

.product-section {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    align-items: start;
}


/* ================= GALLERY ================= */

.product-gallery {
    width: 100%;
}


/* ================= MAIN IMAGE ================= */

.product-main-image {
    position: relative;
    width: 650px;
    height: 600px;
    aspect-ratio: 1 / 1;
    background: #f4f1ec;
    border-radius: 20px;
    overflow: hidden;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    user-select: none;
}


/* ================= GALLERY BUTTONS ================= */

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 44px;
    height: 44px;

    border-radius: 50%;
    border: 1px solid #9A7B4F;

    background: rgba(255, 255, 255, 0.95);
    color: #9A7B4F;

    font-size: 20px;
    cursor: pointer;

    z-index: 5;
    transition: 0.3s ease;
}

.gallery-btn:hover {
    background: #9A7B4F;
    color: #fff;
}

.gallery-prev {
    left: 18px;
}

.gallery-next {
    right: 18px;
}


/* ================= THUMBNAILS ================= */

.product-thumbnails {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.product-thumb {
    width: 82px;
    height: 82px;

    padding: 0;

    border: 1px solid #ddd6cc;
    border-radius: 10px;

    overflow: hidden;

    background: #f4f1ec;

    cursor: pointer;
    transition: 0.25s ease;
}

.product-thumb:hover,
.product-thumb.active {
    border: 2px solid #9A7B4F;
}

.product-thumb img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}


/* ================= PRODUCT INFO ================= */

.product-info {
    padding: 20px 0;
}

.product-label {
    color: #9A7B4F;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.product-info h1 {
    margin: 10px 0 14px;

    color: #000001;

    font-family: Georgia, serif;

    font-size: 46px;
    font-weight: 500;

    line-height: 1.1;
}


/* ================= RATING ================= */

.product-rating {
    color: #9A7B4F;

    font-size: 14px;
    letter-spacing: 2px;

    margin-bottom: 25px;
}

.product-rating span {
    color: #666;

    letter-spacing: 0;

    margin-left: 7px;
}


/* ================= DESCRIPTION ================= */

.product-description {
    max-width: 540px;

    color: #666;

    font-size: 14px;
    line-height: 1.8;

    margin-bottom: 25px;
}


/* ================= PRICE ================= */

.product-price {
    color: #000001;

    font-family: Georgia, serif;

    font-size: 30px;

    margin-bottom: 28px;
}


/* ================= QUANTITY ================= */

.product-option {
    margin-bottom: 25px;
}

.option-label {
    display: block;

    color: #222;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 1.7px;
    text-transform: uppercase;

    margin-bottom: 11px;
}

.quantity-box {
    display: flex;
    align-items: center;

    width: 135px;
    height: 46px;

    border: 1px solid #d6d0c7;
}

.quantity-box button {
    width: 42px;
    height: 100%;

    border: none;

    background: #fff;
    color: #333;

    font-size: 18px;

    cursor: pointer;
}

.quantity-box span {
    flex: 1;

    text-align: center;

    font-size: 13px;
}


/* =====================================================
   ACTION BUTTONS
===================================================== */

.product-actions {
    display: flex;

    gap: 11px;

    width: 100%;
    max-width: 540px;

    margin-top: 10px;
}

.product-actions button {
    flex: 1;

    width: 100%;
    min-width: 0;

    height: 52px;

    padding: 0 20px;

    border: 1px solid #9A7B4F;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 1.5px;

    white-space: nowrap;

    cursor: pointer;

    transition: 0.3s ease;
}


/* ================= ADD TO CART ================= */

.add-cart {
    background: #9A7B4F;

    color: #fff;
}

.add-cart:hover {
    background: #000001;

    border-color: #000001;
}


/* ================= BUY NOW ================= */

.buy-now {
    background: #fff;

    color: #9A7B4F;
}

.buy-now:hover {
    background: #000001;

    color: #fff;

    border-color: #000001;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 992px) {

    .product-main-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .product-section {
        gap: 40px;
    }

    .product-info h1 {
        font-size: 38px;
    }

    .product-actions {
        max-width: 100%;
    }

    .product-actions button {
        height: 50px;

        padding: 0 15px;

        font-size: 10px;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .product-page {
        padding: 40px 18px 70px;
    }

    .product-main-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        touch-action: pan-y;
        border-radius: 16px;
    }


    /* Product layout */

    .product-section {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    /* Hide desktop gallery arrows */

    .gallery-btn {
        display: none;
    }


    /* Mobile swipe */

    .product-main-image {
        touch-action: pan-y;

        border-radius: 16px;
    }


    /* Thumbnails */

    .product-thumbnails {
        justify-content: flex-start;

        overflow-x: auto;

        padding-bottom: 4px;

        scrollbar-width: none;
    }

    .product-thumbnails::-webkit-scrollbar {
        display: none;
    }


    .product-thumb {
        flex: 0 0 70px;

        width: 70px;
        height: 70px;
    }


    /* Product info */

    .product-info {
        padding: 0;
    }


    .product-info h1 {
        font-size: 34px;
    }


    .product-description {
        font-size: 13px;
    }


    /* Buttons */

    .product-actions {
        display: flex;

        width: 100%;
        max-width: 100%;

        gap: 10px;
    }


    .product-actions button {
        flex: 1;

        width: 50%;

        height: 50px;

        padding: 0 10px;

        font-size: 10px;

        letter-spacing: 1px;
    }
}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .product-page {
        padding-left: 15px;
        padding-right: 15px;
    }


    .product-info h1 {
        font-size: 30px;
    }


    .product-price {
        font-size: 27px;
    }


    /* Add to Cart + Buy Now */

    .product-actions {
        display: flex;

        gap: 8px;

        width: 100%;
    }


    .product-actions button {
        flex: 1;

        width: 50%;

        height: 48px;

        padding: 0 6px;

        font-size: 9px;

        letter-spacing: 0.8px;

        white-space: nowrap;
    }
}


/* =====================================================
   VERY SMALL PHONES
===================================================== */

@media (max-width: 350px) {

    .product-actions {
        flex-direction: column;

        gap: 9px;
    }


    .product-actions button {
        width: 100%;

        flex: none;

        height: 48px;

        font-size: 10px;
    }
}


/* =====================================================
   BUNDLE PERFUME SELECTOR
   (Perfect Duo / Perfect Trio / Perfect Quad only —
   these classes are unique to the bundle pages and do
   not touch any existing product-page styling.)
===================================================== */

.bundle-select-wrap {
    margin-bottom: 25px;
}

.perfume-selector {
    position: relative;
}

/* ================= TOGGLE ================= */

.perfume-selector-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: 400px;
    height: 46px;

    padding: 0 16px;

    background: #fff;
    border: 1px solid #d6d0c7;

    color: #333;

    font-size: 13px;
    font-family: inherit;

    cursor: pointer;

    transition: 0.3s ease;
}

.perfume-selector-toggle:hover,
.perfume-selector.open .perfume-selector-toggle {
    border-color: #9A7B4F;
}

.perfume-selector-arrow {
    color: #9A7B4F;
    font-size: 11px;

    transition: transform 0.3s ease;
}

.perfume-selector.open .perfume-selector-arrow {
    transform: rotate(180deg);
}

/* ================= DROPDOWN ================= */

.perfume-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;

    width: 100%;
    max-width: 400px;
    max-height: 340px;

    overflow-y: auto;

    background: #fff;
    border: 1px solid #d6d0c7;
    border-radius: 4px;

    box-shadow: 0 12px 30px rgba(0, 0, 1, 0.12);

    padding: 10px 0;

    z-index: 20;
}

.perfume-category {
    padding: 8px 16px 4px;
}

.perfume-category + .perfume-category {
    border-top: 1px solid #eee6d9;
    margin-top: 4px;
}

.perfume-category-title {
    display: block;

    color: #9A7B4F;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 1.7px;
    text-transform: uppercase;

    margin-bottom: 6px;
}

.perfume-option-list {
    list-style: none;
}

.perfume-option {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 9px 6px;

    background: none;
    border: none;

    color: #333;

    font-size: 13px;
    font-family: inherit;
    text-align: left;

    cursor: pointer;

    transition: 0.2s ease;
}

.perfume-option:hover:not(.disabled) {
    background: #f4f1ec;
}

.perfume-option.selected {
    color: #9A7B4F;
    font-weight: 600;
}

.perfume-option.disabled {
    color: #bbb;
    cursor: not-allowed;
}

.perfume-option-check {
    opacity: 0;
    color: #9A7B4F;
    font-size: 12px;
}

.perfume-option.selected .perfume-option-check {
    opacity: 1;
}

/* ================= COUNTER ================= */

.perfume-counter {
    margin-top: 11px;

    color: #222;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.6px;
}

/* ================= SELECTED PERFUMES LIST ================= */

.selected-perfumes {
    margin-top: 14px;

    max-width: 400px;
}

.selected-perfumes-title {
    display: block;

    color: #222;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 1.7px;
    text-transform: uppercase;

    margin-bottom: 8px;
}

.selected-perfumes-list {
    list-style: none;
}

.selected-perfume-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 8px 10px;

    background: #f4f1ec;
    border-radius: 4px;

    color: #333;

    font-size: 13px;
}

.selected-perfume-item + .selected-perfume-item {
    margin-top: 6px;
}

.remove-perfume-btn {
    background: none;
    border: none;

    color: #9A7B4F;

    font-size: 16px;
    line-height: 1;

    cursor: pointer;
}

.remove-perfume-btn:hover {
    color: #000001;
}

/* ================= VALIDATION MESSAGE ================= */

.perfume-validation-msg {
    margin-top: 10px;

    color: #b3392c;

    font-size: 12px;
    font-weight: 600;
}

/* ================= CART / CHECKOUT — SELECTED PERFUMES ================= */

.cart-item-perfumes,
.checkout-order-item-perfumes {
    list-style: none;

    margin: 4px 0 2px;
}

.cart-item-perfumes li,
.checkout-order-item-perfumes li {
    color: #9A7B4F;

    font-size: 11px;
    line-height: 1.6;
}

.cart-item-perfumes li::before,
.checkout-order-item-perfumes li::before {
    content: "• ";
}


/* =====================================================
   BUNDLE SELECTOR — TABLET / MOBILE
===================================================== */

@media (max-width: 768px) {

    .perfume-selector-toggle,
    .perfume-dropdown,
    .selected-perfumes {
        max-width: 100%;
    }
}